home *** CD-ROM | disk | FTP | other *** search
- global gRootPath, dV
-
- on mouseUp me
- menuTree = member("menuTree").text
- repeat with i = 1 to menuTree.line.count
- repeat with j = 1 to menuTree.line[i].word.count
- if menuTree.line[i].word[1] contains "---" then
- repeat with j = 2 to menuTree.line[i].word.count
- if menuTree.line[i].word[j] contains "@@" then
- Section = menuTree.line[i].word[j]
- delete Section.char[1..2]
- SectionPath = gRootPath & "DiscContent" & dV & Section & dV
- fileList = []
- repeat with i = 1 to 250
- n = getNthFileNameInFolder(SectionPath, i)
- if n = EMPTY then
- exit repeat
- end if
- fileList.append(n)
- end repeat
- end if
- end repeat
- end if
- end repeat
- end repeat
- end
-